<script type="text/javascript">
	$(document).ready(function(){
		$("input,select,textarea").not("[type=submit]").jqBootstrapValidation();

		$("#dlg").click(function(){
			$( "#dialog_simple" ).dialog( "open" );

			//alert("asdfasd");
		});

		$('#dialog_simple').dialog({
			autoOpen: false,
			width: 600,
			buttons: {
				"Ok": function () {
					$(this).dialog("close");
				},
				"Cancel": function () {
					$(this).dialog("close");
				}
			}
		});
	}); //(document).ready
</script>
 <a href="#" id="dlg">dialog</a>

<div id="dialog_simple" title=" แก้ไขค่าธรรมเนียม">
<form id="frmProfile" name="frmProfile" class="form-horizontal" method="post" action="" novalidate="">
	<div class="control-group">
		<label class="control-label">My name</label>
		<div class="controls ">
			<input type="text" id="name1" name="name1" class="input-xlarge"  value="kobbb" required />
		</div>
	</div>
	

</form>


			</div>	


